package org.androidpn.http;

import android.content.Context;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

public class HttpManager {
	
  private static HttpManager mInstance;
  public RequestQueue requestQueue;
  
  private HttpManager(Context context){
	  requestQueue =Volley.newRequestQueue(context);
  }
  public static synchronized HttpManager getInstance(){
      return mInstance;
  }
  
  public static synchronized void init(Context context){
	   if(mInstance == null){
		   mInstance = new HttpManager(context);
	   }
  }
}
